<!DOCTYPE html>
<html lang="zh-cn">
<#include "../include/head.html"/>
<link href="${basePath}/assets/css/menu.css" rel="stylesheet">
<body class="hold-transition skin-green sidebar-mini fixed">
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
    <div class="content">
        <div class="panel panel-default panel-intro">

            <div class="panel-body">
                <div id="myTabContent" class="tab-content">
                    <div class="tab-pane fade active in" id="one">
                        <div class="widget-body no-padding">
                            <div class="weixin-menu-setting clearfix">
                                <div class="mobile-menu-preview">
                                    <div class="mobile-head-title">微信公众号</div>
                                    <ul class="menu-list" id="menu-list">
                                        <li class="add-item extra" id="add-item">
                                            <a href="javascript:;" class="menu-link" title="添加菜单"><i
                                                    class="weixin-icon add-gray"></i></a>
                                        </li>
                                    </ul>
                                </div>
                                <div class="weixin-body">
                                    <div class="weixin-content" style="display:none">
                                        <div class="item-info">
                                            <form id="form-item" class="form-item" data-value="">
                                                <div class="item-head">
                                                    <h4 id="current-item-name">添加子菜单</h4>
                                                    <div class="item-delete"><a href="javascript:;" id="item_delete">删除菜单</a>
                                                    </div>
                                                </div>
                                                <div style="margin-top: 20px;">
                                                    <dl>
                                                        <dt id="current-item-option"><span class="is-sub-item">子</span>菜单标题：
                                                        </dt>
                                                        <dd>
                                                            <div class="input-box"><input id="item_title"
                                                                                          name="item-title" type="text"
                                                                                          value=""></div>
                                                        </dd>
                                                    </dl>
                                                    <dl class="is-item">
                                                        <dt id="current-item-type"><span class="is-sub-item">子</span>菜单内容：
                                                        </dt>
                                                        <dd>
                                                            <input id="type1" type="radio" name="type" value="click">
                                                            <label for="type1" data-editing="1"><span
                                                                    class="lbl_content">发送消息</span></label>
                                                            <input id="type2" type="radio" name="type" value="view">
                                                            <label for="type2" data-editing="1"><span
                                                                    class="lbl_content">跳转网页</span></label>
                                                        </dd>
                                                    </dl>
                                                    <div id="menu-content" class="is-item">
                                                        <div class="viewbox is-view">
                                                            <p class="menu-content-tips">点击该<span
                                                                    class="is-sub-item">子</span>菜单会跳到以下链接</p>
                                                            <dl>
                                                                <dt>页面地址：</dt>
                                                                <dd>
                                                                    <div class="input-box"><input type="text" id="url"
                                                                                                  name="url"></div>
                                                                </dd>
                                                            </dl>
                                                        </div>
                                                        <div class="clickbox is-click" style="display: none;">
                                                            <dl>
                                                                <dt>点击标识：</dt>
                                                                <dd>
                                                                    <div class="input-box"><input type="text" id="key"
                                                                                                  name="key"></div>
                                                                </dd>
                                                            </dl>
                                                        </div>
                                                    </div>
                                                </div>
                                            </form>
                                        </div>

                                    </div>
                                    <div class="no-weixin-content">
                                        点击左侧菜单进行编辑操作
                                    </div>
                                </div>
                            </div>
                            <div class="row">
                                <div class="col-xs-8 text-center">
                                    <a href="javascript:;" id="menuSyn"
                                       class="btn btn-danger">保存并发布</a></div>
                            </div>
                        </div>
                    </div>

                </div>
            </div>
        </div>


    </div>
</div>
</body>
<script src="${basePath}/assets/js/app.js"></script>
<script src="${basePath}/assets/js/wx/menu.js"></script>
<script type="text/javascript">

    var menu = '';
    var pageNum = 1;
    $.getJSON("${basePath}/mp/menu/menuList",function(result){
        menu = result;
        Controller.index();
    })

</script>
<script>

</script>
</html>